/**
 * Created by Administrator on 2017/3/6 0006.
 */
'use strict';
angular.module('App')
    .factory('more_ng-class',['$scope','$http','$timeout',function($scope,$http,$timeout){
        return{
            more_ng:function(){
                $scope.loading = true;
                $timeout(function(){
                    $scope.more(1).success(function(data){
                        $scope.loading = false;
                        $scope.followmoreData = data;
                    })
                },500)
                $scope.follow = 1;
                $scope.changeData = function(a){
                    $scope.followmoreData=[];
                    $scope.loading = true;
                    $timeout(function(){
                        $scope.follow = a;
                        $scope.more(a).success(function(data){
                            $scope.loading = false;
                            $scope.followmoreData = data;

                        })
                    },500)

                }
            }
        }
    }])